package com.groupbuying.store.mq;

import com.groupbuying.store.service.StoreCapitalVirtualAccountService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * 提现结果处理
 */
@Component
public class StoreWithdrawDealResult {
    public static final Logger LOGGER = LoggerFactory.getLogger(StoreWithdrawDealResult.class);

    @Autowired
    @Lazy
    private StoreCapitalVirtualAccountService storeCapitalVirtualAccountService;

    public boolean dealWithdraw() {

        LOGGER.info("=======开始提现=========");
        storeCapitalVirtualAccountService.withdraw();
        return true;
    }
}
